<?php

/*

// TODO

function &CKGet(&$subject, $key) {
	if (is_object($subject) &&
		method_exists($subject, 'GetKey')) {
		$x = &$subject->GetKey($key);
		return $x;
	}
	
	if (is_array($subject))
		return @$subject[$key];
	
	$x = null; return $x;
}

function CKSet(&$subject, $key, &$value) {
	if (is_object($subject) &&
		method_exists($subject, 'SetKey')) {
		$subject->SetKey($key, $value);
	}
	
	if (is_array($subject))
		$subject[$key] = &$value;
}

function &CKGetByPath(&$subject, $key) {
	if (sizeof($key) == 0)
		return $subject;
	
	$firstPart = array_splice($key, 0, 1);
	$firstPart = &$firstPart[0];

	$item = CKGet($subject, $firstPart);
	
	return CKGetByPath($item, $key);
}

function CKSetByPath(&$subject, $key, &$value) {
	
}

*/

?>